#pragma once
#include "callbackapi.h"
#include "common.h"
#include "CThreadPool.h"
#include "CSocketListenAccepter.h"
#include "CSocketClientManager.h"
using namespace std;

class CControlClientManager :public CSocketListenAccepter, public CSocketClientManager
{
public:
	CControlClientManager();
	bool Accept(PSOCKETOBJ pSocketObj);
protected:
	bool GetSocketClientType(SOCKETDESOBJ& socketDesObj, PSOCKETOBJ pSocketObj, void* selectParam);
	bool OnAcceptSocketClient(CSocketClient* pSocketClient, int type, int id);
	void OnDiscardSocketClient(CSocketClient* pSocketClient, int type, int id);
};

